<?php 
include_once('db_config/db_catagory.php');
$catagory=new catagory();
$rs=$catagory->catagory_list();
$i=0;

?><?php
// ntgroup BEGIN
include_once('db_config/db_multiple_gigs.php');// ntgroup
if (!isset($multiple_gigs)){
$multiple_gigs =new multipleGigs();// ntgroup
}
// ntgroup END
include_once('db_config/db_recommend.php'); 
$recommend =new recommend();
$rs_recommend=$recommend->recommend_list(); 
$rs_multi_gigs=@$multiple_gigs->multiple_gigs_list();
?>
<div class="social_bk" style="border-bottom:0px;height:35px;">
<!-- AddToAny BEGIN -->
<a class="a2a_dd" href="http://www.addtoany.com/share_save?linkurl=http://<?php echo $_SERVER['HTTP_HOST']?>&amp;linkname="><img src="http://static.addtoany.com/buttons/share_save_256_24.png" width="256" height="24" border="0" alt="Share/Bookmark"/></a>
<script type="text/javascript">
var a2a_config = a2a_config || {};
a2a_config.linkurl = "http://<?php echo $_SERVER['HTTP_HOST']?>";
</script>
<script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>
<!-- AddToAny END -->


<script  type="text/javascript">
	function popup(){
		window.open('tell_a_friend.php', 'tellafriend_script',
		'scrollbars=1,statusbar=1,resizable=1,width=400,height=510');
	}
</script>
</div>

<div class="side2">
	<!-- category START ======================================= -->
  	<div class="lside-tl">
	  <div class="lside-tr"></div>
	  <div class="lside-top"></div>
	</div>
	<div class="gigCategories index js-response js-responses">
		<div class="suggest-inner">
			<ul class="side2-list">
				<?php
			while($data=mysql_fetch_array($rs))
			{
			?>
				<li><a href="catagory.php?id=<?php  echo $data['catagory_id'];?>"><?php  echo $data['catagory_name'];?></a> </li>	
				<?php
			}
			?>
			</ul>
			<div class="js-pagination">
				<div class="paging">
					<span class="prev">&laquo; Prev</span>
					<span class="current">1</span> 
					<span><a href="/gig_categories/index/page:2">2</a></span> 
					<a href="/gig_categories/index/page:2" class="next">Next &raquo;</a>
				</div>
			</div>
		</div>
	</div>
	<div class="lside-bl">
		<div class="lside-br"></div>
		<div class="lside-bmid"></div>
	</div>
	<br/>
	<!-- category END ======================================= -->
	<!-- openid START ======================================= -->
	<iframe scrolling="no" frameborder="0" allowtransparency="true" style="border: medium none; overflow: hidden; width: 200px; height: 44px;" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.eskoosh.com&amp;layout=standard&amp;show_faces=false&amp;width=150&amp;action=like&amp;colorscheme=light&amp;height=35"></iframe>
	<h3 class="twitt-bird">
		Eskoosh tweets	<a target="_blank" title="Follow Me" href="http://twitter.com/eskoosh">Follow Me</a>	
	</h3>
	<p>Get a fresh dose of money delivered right to your twitter!</p>
	<!-- openid END ======================================= -->
	<!-- suggestion START ======================================= -->
	<div class="lside-tl">
		<div class="lside-tr"></div>
		<div class="lside-top"></div>
	</div>
	<div class="suggest-inner clearfix">
		<div class="suggestions form">
			<form class="suggest" action="add_recommend.php" method="get">
				<h3>Suggest!</h3>
				<div class="input textarea">
					<div class="input textarea">
						<label>I need a box containing</label>
						<textarea name="textarea" cols="30" rows="6"></textarea>
					</div>		
				</div>		
				<div class="submit-block1 clearfix">
					for 
					<select name="multi_gigs_id" id="multi_gigs_id">
	   					<?php
	   				while($data_multi_gigs=mysql_fetch_array($rs_multi_gigs))
	   				{
	   				?>
	
	                    <option value="<?php  echo $data_multi_gigs['multiple_gigs_id'];?>"
	   					<?php if($data_multi_gigs['multiple_gigs_id'] == 1)
	   					{
	   						echo 'selected';
	
	   					}?>
	   					><?php  echo $data_multi_gigs['multiple_gigs_price'];?></option>
	   					<?php
	   				}
	   				?>
	                </select>
					<div class="submit">
						<?php
					 if(@$_SESSION['username_email']!='')
					 {
					 ?>
					 	<input type="submit" value="Suggest" />
					 	<?php
					 	}
					 	else
					 	{
					 	?>
					 	<input type="button" value="Suggest" onclick="javascript:alert('Please Login First');"/>
				 		<?php
				 	}
				 	?>
					</div>
				</div><!-- end submit-block1 -->
			</form>
		</div><!-- end suggestions -->
	
		<div class="suggestions index js-response js-responses">
			<ol class="list1 idea-list">
				<?php
				$i=0;
			while($data_recommend=mysql_fetch_array($rs_recommend))
			{
				$rs_mulp_gigs=$multiple_gigs->uniq_multiple_gigs('multiple_gigs_id',$data_recommend['multiple_gigs_id']);
				$data_mulp_gigs=mysql_fetch_array($rs_mulp_gigs);
				?>
				<li>
					<div class="suggest-left"><?php echo $data_mulp_gigs['multiple_gigs_price']; ?></div>
					<div class="suggest-right">
						<h4>
							<a title="" href="#">
								<span class="c"><?php echo ucfirst($data_recommend['recommend_by'])." "; ?></span>
							</a> wants:
						</h4>							
						<p><span class="c"><?php echo $data_recommend['recommend_value']; ?></span></p>
					</div>			
				</li>
				<?php
				$i++;
			}
			?>
			</ol>
			<div class="js-pagination">
				<div class="paging">
					<span class="prev">&laquo; Prev</span>
					<span class="next">Next &raquo;</span>
				</div>
			</div>
		</div><!-- end of suggestions -->
	</div><!-- end suggest-inner -->
	<div class="lside-bl">
	  <div class="lside-br"></div>
	  <div class="lside-bmid"></div>
	</div>					
</div><!-- end side2 -->